function isvalidPhone(str: string) {
    const reg =  /^1[3|4|5|7|8][0-9]\d{8}$/
    return reg.test(str)
}

function isvalidPass(str: string) {
    const reg = /^[a-zA-Z][\w]{7,17}$/
    return reg.test(str)
}


function validateName(str: string) {
    const reg = /^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d_]+$/
}

export default { isvalidPhone, isvalidPass, validateName }